export default{
    data() {
        return {
            datePickerShow : false,
            minDate: new Date(1920, 0, 1),
            maxDate: new Date(2022, 8, 1), 
        };
    },
    methods:{
        //性别选择器确定事件
			datePickerConfirm(e){
				console.log(e)
                //转换日期对象
                let year = e. getFullYear()
                let month = e. getMonth()+1
                let date = e. getDate()
             let d = [year, month ,date].map(v=>{
                    return (v+'').length>1?v:'0'+v
                }).join('/')
                this.userInfo.birthday =d
				// this.userInfo.sex=e
				 this.datePickerShow=false
			},
    }
}